CC=g++
LIB=-O2 -larmadillo

all: cell 1D_FD 1D_CN 2D_CN

cell: prepare
	$(CC) -o ../bin/cell simulationCell.cc cell.cc $(LIB)

1D_FD: prepare
	$(CC) -o ../bin/1D_FD simulation1D.cc cell.cc $(LIB)

1D_CN: prepare
	$(CC) -o ../bin/1D_CN simulation1D-CN.cc cell.cc $(LIB)

2D_CN: prepare
	$(CC) -o ../bin/2D_CN simulation2D-CN.cc cell.cc $(LIB)

clean:
	rm -rf ../bin/*

prepare:
	mkdir -p ../bin ../images
